home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
3D & Offscreen for MacApp 3
/
3D & Offscreen Sample.sea
/
3D & Offscreen Sample
/
T3DView.h
< prev
next >
Wrap
Text File
|
1993-05-17
|
2KB
|
100 lines
/*************************************************************************
File: T3DView.h
C O P Y R I G H T N O T I C E
Copyright ⌐ 1993, Eric Hanig.
All Rights Reserved.
D E S C R I P T I O N
Classes Defined Here:
Ñ
Change History
Rev 1 Wed, Apr 14, 1993 @ 1:17 PM Hanig
Creation
*************************************************************************/
/*************************************************************************/
#ifndef __T3DView__
#define __T3DView__
/*************************************************************************/
/* Include Files */
/*************************************************************************/
#ifndef __UVIEW__
#include <UView.h>
#endif
#ifndef __GRAF3D__
#include <Graf3D.h>
#endif
#ifndef __TYPES__
#include <Types.h>
#endif
/*************************************************************************/
/* Constants */
/*************************************************************************/
typedef struct {
double x;
double y;
double z;
} CPoint3D;
typedef double Matrix4D[4][4];
/*************************************************************************/
/* Class Declaration */
/*************************************************************************/
class T3DView : public TView
{
protected:
Boolean fScaleonSizeChange;
Port3D fThe3DPort;
Fixed fViewAngle;
public:
T3DView(void);
virtual pascal void Initialize();
virtual pascal void DoPostCreate(TDocument* itsDocument);
virtual pascal void SetFrame(const VRect& newFrame, Boolean invalidate);
virtual pascal Boolean Focus();
virtual pascal void Scale(Fixed xFactor,Fixed yFactor,Fixed zFactor);
virtual pascal void LookAt(Fixed left,Fixed top,Fixed right,Fixed bottom);
virtual pascal void ViewAngle(Fixed angle);
virtual pascal void GetViewAngle(Fixed& theViewAngle);
virtual pascal void Skew(Fixed zAngle);
virtual pascal void Yaw(Fixed yAngle);
virtual pascal void Pitch(Fixed xAngle);
virtual pascal void Roll(Fixed zAngle);
virtual pascal void Translate(Fixed dx,Fixed dy,Fixed dz);
virtual pascal void Identity( void );
};
/*************************************************************************/
#endif
/*************************************************************************/